package chapter3.No3_3_类ThreadLocal的使用.demo2;

/**
 * Created by Administrator on 2016/11/20.
 */
public class ThreadB extends Thread {
    @Override
    public void run() {
        for(int i = 0; i < 10; i++) {
            Tools.tLocal.set("value:"+(i+1));
            System.out.println("线程B 取值"+Tools.tLocal.get());
        }
    }
}
